<?php

namespace App\Models\Ca;

use App\Models\BaseModel;
use App\Utils\ManyDataHandler;
use Modules\System\Entities\User;

/**
 * 客户扩展字段
 */
class CustomerExtend extends BaseModel
{
    protected $table = 'ca__customer_extends';

    protected $fillable = [
        'id',
        'medical_history',
        'disease_desc',
        'remark',
        'disease_data',
        'visit_data',
        'swt',
        'deleted_at',
        'updated_at',
        'created_at'
    ];

    protected $casts = [
        'disease_data' => 'array',
        'visit_data' => 'array',
    ];

    public static function getMany()
    {
        return ManyDataHandler::get(CustomerExtend::query());
    }
}